package com.dly.blog.domain.ro;

import com.dly.blog.enums.FreeType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ParseCodeRO {

    @Schema(description = "兑换码")
    @NotBlank(message = "兑换码不能为空")
    private String code;

    @Schema(description = "类型：WX(微信类型) Other(其他类型)")
    @NotNull(message = "类型不能为空")
    private FreeType type;

    @Schema(description = "兑换人")
    private String userId;

    @Schema(description = "微信用户的openId")
    private String openId;
}
